Matthias Clasen [Sun, 9 Aug 2020 19:43:46 +0000 (15:43 -0400)]
Adwaita: Small improvement for dropdown
Put some space between the arrow and the text.
This was noticable in the new listbox2 demo.
Matthias Clasen [Sun, 9 Aug 2020 19:43:01 +0000 (15:43 -0400)]
gtk-demo: Cosmetic improvement to listbox2 demo
Make the checkbutton and the check align vertically.
Christian Kirbach [Sun, 9 Aug 2020 19:05:18 +0000 (19:05 +0000)]
Update German translation
Matthias Clasen [Sun, 9 Aug 2020 17:11:18 +0000 (17:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2422
Matthias Clasen [Sun, 9 Aug 2020 16:31:35 +0000 (12:31 -0400)]
gtk-demo: Group the listbox demos
Matthias Clasen [Sun, 9 Aug 2020 16:29:52 +0000 (12:29 -0400)]
gtk-demo: Add another listbox demo
This is a more typical listbox use.
Matthias Clasen [Sun, 9 Aug 2020 16:01:08 +0000 (12:01 -0400)]
Adwaita: be careful with list separators
We only want the list .separators class to affect its
immediate children - otherwise, we end up with separators
in dropdowns that are places into button strips. As a side
benefit, restricting this to immediate children makes for
faster matching.
Matthias Clasen [Sun, 9 Aug 2020 15:14:28 +0000 (11:14 -0400)]
gtk-demo: Fix an indentation mishap
Matthias Clasen [Sun, 9 Aug 2020 14:59:22 +0000 (10:59 -0400)]
gtk-demo: Drop the modelbutton demo
Not a public api, so shouldn't be featured in a demo.
Matthias Clasen [Sun, 9 Aug 2020 14:53:48 +0000 (10:53 -0400)]
gtk-demo: Improve filtering
Show sidebar rows if any parent matches. This lets one
search for "lists" and get just the subtree with all the
listview demos.
Emin Tufan Çetin [Sun, 9 Aug 2020 08:19:33 +0000 (08:19 +0000)]
Update Turkish translation
Matthias Clasen [Sun, 9 Aug 2020 04:28:31 +0000 (04:28 +0000)]
Merge branch 'demo-polish' into 'master'
Demo polish
See merge request GNOME/gtk!2420
Matthias Clasen [Sun, 9 Aug 2020 04:03:43 +0000 (00:03 -0400)]
gtk-demo: Make source formatting uniform
Give the text view in the source tab the same
formatting as tabs we add for extra sources.
Matthias Clasen [Sun, 9 Aug 2020 03:50:45 +0000 (23:50 -0400)]
gtk-demo: Adapt hightlighting style for dark themes
Switch to a highlight style that is readable with
dark background, if prefer-dark is set or we are
in HighContrastInverse.
Matthias Clasen [Sun, 9 Aug 2020 03:41:50 +0000 (23:41 -0400)]
gtk-demo: Cosmetics
Matthias Clasen [Sun, 9 Aug 2020 03:41:05 +0000 (23:41 -0400)]
gtk-demo: Make content views monospace
That works better for code.
Matthias Clasen [Sun, 9 Aug 2020 03:38:07 +0000 (23:38 -0400)]
gtk-demo: Follow font settings again
highlight puts font and size information into
its pango markup; strip that out to make our
text follow font settings again.
Matthias Clasen [Sat, 8 Aug 2020 23:08:44 +0000 (23:08 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3048
See merge request GNOME/gtk!2419
Matthias Clasen [Sat, 8 Aug 2020 22:06:12 +0000 (18:06 -0400)]
textutil: Do a little better on retro X servers
When running on a non-composited, non-rgba X server
(such as Xnest), force the drag icons for text selections
to have a background, so we don't end up with black
text on black background.
Fixes: #3048
Matthias Clasen [Sat, 8 Aug 2020 22:05:21 +0000 (18:05 -0400)]
inspector: Avoid a crash
I've seen the inspector crash when running on an
X server without an xsettings manager around. Better
be safe.
Matthias Clasen [Sat, 8 Aug 2020 17:33:19 +0000 (13:33 -0400)]
bookmarksmanager: Load bookmarks initially
This was broken in
1e6171a4a700b0c16b2f.
Matthias Clasen [Sat, 8 Aug 2020 19:13:44 +0000 (19:13 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3037 and #3030
See merge request GNOME/gtk!2417
Matthias Clasen [Sat, 8 Aug 2020 18:49:50 +0000 (14:49 -0400)]
Remove deprecation guards around gtk_window_present
It is not deprecated anymore.
Matthias Clasen [Sat, 8 Aug 2020 18:38:18 +0000 (14:38 -0400)]
gtk-demo: Fix iconscroll complex text
We changed the way fontify works.
Adapt the iconscroll use.
Matthias Clasen [Sat, 8 Aug 2020 18:36:16 +0000 (14:36 -0400)]
gtk-demo: Fix iconscroll colors
We changed the way the color grid works.
Adapt the iconscroll use of it.
Fixes: #3030
Matthias Clasen [Sat, 8 Aug 2020 18:25:46 +0000 (14:25 -0400)]
placessidebar: Fix dnd cancellation
When the drag is canceled by being dropped outside,
we get a ::cancel emission, that we want to handle
just like ::dnd-finished.
Fixes: #3037
Matthias Clasen [Sat, 8 Aug 2020 18:24:45 +0000 (14:24 -0400)]
placessidebar: Fix the bookmark drag icon
Just use the widget; a paintable only works if the
widget it is based on actually gets drawn, the
clone we create here wasn't.
Matthias Clasen [Sat, 8 Aug 2020 17:47:23 +0000 (13:47 -0400)]
placessidebar: Fix bookmarks dnd
We were not handling drops of bookmarks correctly,
leading to criticals during DND.
Fixes: #3037
Matthias Clasen [Sat, 8 Aug 2020 17:46:20 +0000 (13:46 -0400)]
placessidebar: We're not a listbox anymore
The placessidebar used to derive from GtkListBox,
but it doesn't anymore. There was one case leftover,
leading to criticals during bookmark DND.
Matthias Clasen [Sat, 8 Aug 2020 17:33:19 +0000 (13:33 -0400)]
bookmarksmanager: Load bookmarks initially
This was broken in
1e6171a4a700b0c16b2f.
Matthias Clasen [Sat, 8 Aug 2020 16:51:31 +0000 (12:51 -0400)]
gtk-demo: Improve an error message
Be more helpful when we can't do syntax highlighting.
Matthias Clasen [Sat, 8 Aug 2020 17:05:25 +0000 (17:05 +0000)]
Merge branch 'patch-1' into 'master'
Correct typos in gtktextbtree.c
See merge request GNOME/gtk!2413
Matthias Clasen [Sat, 8 Aug 2020 16:27:27 +0000 (16:27 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3047, #3034, #3038, and #3036
See merge request GNOME/gtk!2416
Matthias Clasen [Sat, 8 Aug 2020 16:18:19 +0000 (16:18 +0000)]
Merge branch 'scroll-to-cursor' into 'master'
Scroll to cursor after canceling a selection
Closes #2960
See merge request GNOME/gtk!2321
Matthias Clasen [Sat, 8 Aug 2020 14:41:57 +0000 (10:41 -0400)]
bookmarksmanager: Ignore delete events
Surpisingly, when a monitored file gets atomically replaced
with g_file_set_contents(), the file monitor reports a
DELETED event for the temp file, which is not the file
I'm monitoring.
Just ignore DELETED events.
Fixes: #3036
Matthias Clasen [Sat, 8 Aug 2020 14:17:06 +0000 (10:17 -0400)]
x11: Fix getting the primary monitor
Actually return the primary monitor.
Fixes: #3038
Matthias Clasen [Sat, 8 Aug 2020 13:51:47 +0000 (09:51 -0400)]
label: Disable unavailable actions
Fixes: #3034
Matthias Clasen [Sat, 8 Aug 2020 13:38:35 +0000 (09:38 -0400)]
printeditor: Create the dialog every time
Trying to work around gtk_show_about_dialog() is
not worth it, just recreate the dialog from scratch.
Matthias Clasen [Sat, 8 Aug 2020 13:36:05 +0000 (09:36 -0400)]
widgetfactory: Create the dialog every time
Trying to work around gtk_show_about_dialog() is
not worth it, just recreate the dialog from scratch.
Fixes: #3047
Matthias Clasen [Sat, 8 Aug 2020 13:35:25 +0000 (09:35 -0400)]
about dialog: remove unnecessary guards
We decided to undeprecate gtk_window_present,
so no deprecation guards needed.
Matthias Clasen [Sat, 8 Aug 2020 14:44:52 +0000 (14:44 +0000)]
Merge branch 'surface-size' into 'master'
Surface size
See merge request GNOME/gtk!2415
Emmanuele Bassi [Sat, 8 Aug 2020 13:59:37 +0000 (13:59 +0000)]
Merge branch 'wip/smcv/cloudprint-redundant-decls' into 'master'
cloudprint: Fix redundant declarations
See merge request GNOME/gtk!2414
Simon McVittie [Sat, 8 Aug 2020 13:19:14 +0000 (14:19 +0100)]
cloudprint: Fix redundant declarations
G_DEFINE_DYNAMIC_TYPE declares these functions as static, and
-Werror=redundant-decls won't let us redeclare them. This is the
equivalent of
72c72d0b, but for a different backend.
Signed-off-by: Simon McVittie <smcv@debian.org>
Matthias Clasen [Sat, 8 Aug 2020 03:38:28 +0000 (23:38 -0400)]
surface: Add width and height properties
Matthias Clasen [Sat, 8 Aug 2020 03:26:01 +0000 (23:26 -0400)]
gdk: Move the ::popup-layout-changed signal
Move this signal from GdkSurface to GtkPopup,
where it belongs.
Piotr Drąg [Sat, 8 Aug 2020 11:07:18 +0000 (13:07 +0200)]
Update POTFILES.in and POTFILES.skip
Felix Yan [Sat, 8 Aug 2020 09:29:08 +0000 (09:29 +0000)]
Correct typos in gtktextbtree.c
Matthias Clasen [Sat, 8 Aug 2020 03:09:30 +0000 (03:09 +0000)]
Merge branch 'activatable-colorswatch-style' into 'master'
Adwaita: Limit color swatch's hover effect to .activatable
See merge request GNOME/gtk!2411
Matthias Clasen [Sat, 8 Aug 2020 02:41:04 +0000 (02:41 +0000)]
Merge branch 'wip/chergert/popover-offset' into 'master'
popover: allow setting popup layout offset
See merge request GNOME/gtk!2412
Christian Hergert [Sat, 8 Aug 2020 00:06:08 +0000 (17:06 -0700)]
popover: allow setting popup layout offset
Currently there is no way to alter the offset of the popup when positioning
with GdkPopupLayout. This makes using the popup difficult for scenarios
like completion windows where you may need to offset the window by a given
amount for aligning text.
gtk_popover_set_offset() allows setting these values and are analagous to
the function of the same name for GdkPopupLayout.
nana-4 [Fri, 7 Aug 2020 23:37:33 +0000 (08:37 +0900)]
colorbutton: Remove .activatable style class from the color swatch
The button itself is activatable, but its color swatch is not.
nana-4 [Fri, 7 Aug 2020 23:33:38 +0000 (08:33 +0900)]
Adwaita: Limit color swatch's hover effect to .activatable
Non-activatable color swatches shouldn't have the interactive effect.
Efstathios Iosifidis [Fri, 7 Aug 2020 20:41:27 +0000 (20:41 +0000)]
Update Greek translation
Matthias Clasen [Fri, 7 Aug 2020 20:29:02 +0000 (20:29 +0000)]
Merge branch 'leak-fixes' into 'master'
Leak fixes
See merge request GNOME/gtk!2406
Matthias Clasen [Fri, 7 Aug 2020 20:17:22 +0000 (20:17 +0000)]
Merge branch 'wip/chergert/fix-textview-yrange-invalidation' into 'master'
linedisplaycache: improve invalidation with y_range
See merge request GNOME/gtk!2407
Christian Hergert [Fri, 7 Aug 2020 19:25:06 +0000 (12:25 -0700)]
linedisplaycache: improve invalidation with y_range
When we invalidate a y_range using the common pattern of y==0 and
old_height==new_height, we are generally invalidating the entire buffer.
This short-circuits that case to just invalidate the buffer in a faster
and more complete form. The problem here appears to be that we can't
always calculate the ranges properly to invalidate because validation
has not run far enough.
Matthias Clasen [Fri, 7 Aug 2020 19:26:11 +0000 (15:26 -0400)]
textbuffer: Fix a leak
gtk_text_buffer_insert_markup was leaking all the tags
that it inserts.
Matthias Clasen [Fri, 7 Aug 2020 19:19:33 +0000 (15:19 -0400)]
gtk-demo: Don't leak the markup
Matthias Clasen [Fri, 7 Aug 2020 19:15:18 +0000 (15:15 -0400)]
gtk-demo: Fix a memory leak
The colors demo was leaking a reference to its model.
This was showing up as crash when you manage to close
both the demo window and the main window while the
sorting is ongoing.
Matthias Clasen [Fri, 7 Aug 2020 18:56:42 +0000 (14:56 -0400)]
toplevel: Revise docs wording a bit
The documentation of ::compute-size didn't quite
keep up with the changes in the MR. Fix it up.
Matthias Clasen [Fri, 7 Aug 2020 18:46:24 +0000 (18:46 +0000)]
Merge branch 'matthias/fix-min-size' into 'master'
Matthias/fix min size
See merge request GNOME/gtk!2404
Matthias Clasen [Fri, 7 Aug 2020 17:55:02 +0000 (13:55 -0400)]
window: Don't set min_size > size
This fixes the failing reftest.
Jakub Steiner [Fri, 7 Aug 2020 17:16:14 +0000 (17:16 +0000)]
Merge branch 'wip/jimmac/vte-bg-color' into 'master'
Wip/jimmac/vte bg color
Closes vte#226
See merge request GNOME/gtk!2403
Jakub Steiner [Fri, 7 Aug 2020 16:58:32 +0000 (18:58 +0200)]
Adwaita: add public color for text views
- define @text_view_bg to complement @theme_text_color for high
contrast legible text views.
Fixes https://gitlab.gnome.org/GNOME/vte/-/issues/226
Jakub Steiner [Thu, 6 Aug 2020 13:52:33 +0000 (15:52 +0200)]
Adwaita: force circular imagebuttons to be square
Addresses https://gitlab.gnome.org/GNOME/gnome-clocks/-/merge_requests/123#note_884741
Matthias Clasen [Fri, 7 Aug 2020 16:45:19 +0000 (12:45 -0400)]
Check sanity of toplevel sizes
Emit a warning when sizes returned in GdkToplevelSize
don't look sane. This is the case in the failing
reftest.
Matthias Clasen [Fri, 7 Aug 2020 16:21:55 +0000 (16:21 +0000)]
Merge branch 'demo-highlighting' into 'master'
gtk-demo: Modernize source highlighting
See merge request GNOME/gtk!2401
Matthias Clasen [Fri, 7 Aug 2020 13:21:29 +0000 (09:21 -0400)]
gtk-demo: Modernize source highlighting
Drop the homegrown highlighting code, and just use highlight
to produce Pango markup.
When using an external highlighter, we can also highlight css,
xml, headers, at least.
Matthias Clasen [Fri, 7 Aug 2020 12:58:05 +0000 (12:58 +0000)]
Merge branch 'wip/dont-leak-toplevel-present-callback' into 'master'
wayland/toplevel: Don't leak wl_callback used during present()
See merge request GNOME/gtk!2399
Matthias Clasen [Fri, 7 Aug 2020 12:51:46 +0000 (12:51 +0000)]
Merge branch 'wip/oholy/gtkmountoperation-newline' into 'master'
gtkmountoperation: Drop the new line character when splitting a message
See merge request GNOME/gtk!2397
Jonas Ådahl [Fri, 7 Aug 2020 12:01:16 +0000 (14:01 +0200)]
wayland/toplevel: Don't leak wl_callback used during present()
Matthias Clasen [Fri, 7 Aug 2020 11:56:30 +0000 (11:56 +0000)]
Merge branch 'wip/fix-wayland-toplevel-present-callback' into 'master'
Fix Wayland toplevel present callback issues
Closes #3026
See merge request GNOME/gtk!2395
Ondrej Holy [Fri, 7 Aug 2020 07:38:37 +0000 (09:38 +0200)]
gtkmountoperation: Drop the new line character when splitting a message
When asking for a password, the message string is split on primary
and secondary if it contains a newline character. However, the newline
character is currently part of both strings, which creates weird
spacing between the GtkLabels. I suppose this is bug, which was not
visible as in most cases (if not all) the message string hasn't
contained the new line characters so far. But we are going to change
that now, see GNOME/gvfs!82. Let's drop the new line character similarly
as it is done when asking for a question, or showing processes in order
to fix the weird spacing.
Jonas Ådahl [Fri, 7 Aug 2020 08:11:10 +0000 (10:11 +0200)]
gtk/window: Fix min size calculation
It should always use "preferred" size, not any remembered or otherwise
computed one, otherwise we won't be able to shrink to the preferred size.
Jonas Ådahl [Fri, 7 Aug 2020 07:03:03 +0000 (09:03 +0200)]
wayland/surface: Destroy toplevel present callback if ignored
We might break the loop early, e.g. if we're unmapped before the round
trip finishes, and to avoid the callback to write to invalid stack
memory, destroy the callback so it won't be invoked.
Fixes: #3026
Jonas Ådahl [Fri, 7 Aug 2020 07:02:03 +0000 (09:02 +0200)]
wayland/surface: Fix toplevel present roundtrip condition
We should round trip until we both have received callback and have
ensured we received the initial configuration.
Matthias Clasen [Fri, 7 Aug 2020 02:35:09 +0000 (02:35 +0000)]
Merge branch 'about-polish' into 'master'
About polish
See merge request GNOME/gtk!2394
Matthias Clasen [Fri, 7 Aug 2020 02:18:14 +0000 (22:18 -0400)]
aboutdialog: Make margins more uniform
Use similar margins in the Credits and System tabs.
Matthias Clasen [Fri, 7 Aug 2020 02:17:36 +0000 (22:17 -0400)]
demos: Brush up about dialogs
Show OS info, and generally polish this here and there.
Matthias Clasen [Fri, 7 Aug 2020 01:36:34 +0000 (01:36 +0000)]
Merge branch 'gtk-demo-leaks' into 'master'
Gtk demo leaks
See merge request GNOME/gtk!2393
Matthias Clasen [Fri, 7 Aug 2020 01:16:11 +0000 (01:16 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
Wip/otte/for master
See merge request GNOME/gtk!2392
Matthias Clasen [Fri, 7 Aug 2020 01:14:11 +0000 (21:14 -0400)]
gtk-demo: Plug a big memory leak
The colors demo was leaking all its colors. Oops.
Matthias Clasen [Fri, 7 Aug 2020 01:13:39 +0000 (21:13 -0400)]
gtk-demo: Plug a small memory leak
The settings demo was leaking a GtkBuilderScope.
Benjamin Otte [Fri, 7 Aug 2020 00:53:21 +0000 (02:53 +0200)]
demo: fix memleak
Benjamin Otte [Fri, 7 Aug 2020 00:50:19 +0000 (02:50 +0200)]
treeview: Use gtk_snapshot_append_border()
No need to construct the node manually.
Benjamin Otte [Fri, 7 Aug 2020 00:49:41 +0000 (02:49 +0200)]
demo: Don't crash when closing words demo
Make sure the stringlist we're loading into doesn't go away.
It'd be better to have a cancellable, but I'm lazy.
Matthias Clasen [Fri, 7 Aug 2020 00:34:38 +0000 (00:34 +0000)]
Merge branch 'dnd-leaks' into 'master'
Dnd leaks
See merge request GNOME/gtk!2391
Matthias Clasen [Fri, 7 Aug 2020 00:01:26 +0000 (20:01 -0400)]
widgetpaintable: Clear an idle in dispose
We were not removing the pending_update idle
in dispose, which is at least suspicious, if
not deadly. Move the idle cleanup code into
unset_widget(), which we are already calling
in dispose().
Matthias Clasen [Fri, 7 Aug 2020 00:00:49 +0000 (20:00 -0400)]
wayland: Don't leak content formats
We were not unreffing the formats here.
Matthias Clasen [Fri, 7 Aug 2020 00:00:05 +0000 (20:00 -0400)]
drop: Don't leak the surface and formats
Matthias Clasen [Thu, 6 Aug 2020 23:59:42 +0000 (19:59 -0400)]
contentdeserializer: Add some missing annotations
Matthias Clasen [Thu, 6 Aug 2020 23:56:56 +0000 (23:56 +0000)]
Merge branch 'scroll-compression-leak' into 'master'
Fix a leak in scroll event compression
See merge request GNOME/gtk!2390
Matthias Clasen [Thu, 6 Aug 2020 23:33:20 +0000 (23:33 +0000)]
Merge branch 'cairo-node-leak' into 'master'
gsk: Don't leak cairo nodes
See merge request GNOME/gtk!2389
Matthias Clasen [Thu, 6 Aug 2020 23:31:08 +0000 (19:31 -0400)]
Fix a leak in scroll event compression
We were leaking the last event in a sequence
of scroll events.
Matthias Clasen [Thu, 6 Aug 2020 22:26:42 +0000 (18:26 -0400)]
gsk: Don't leak cairo nodes
Not chaining up in finalize is a leak, after all.
Matthias Clasen [Thu, 6 Aug 2020 19:31:24 +0000 (19:31 +0000)]
Merge branch 'focus-workaround' into 'master'
gridview: Work around unexpected focus changes
See merge request GNOME/gtk!2387
Matthias Clasen [Thu, 6 Aug 2020 18:35:19 +0000 (14:35 -0400)]
gridview: Work around unexpected focus changes
As things currently stand, we get events for focus changes
before the widget is allocated, and try to scroll in response.
Therefore, leaving n_columns at 0 until size-allocate leads
to plenty of division-by-zero. Just set it to 1 initially
to avoid that. This is a workaround for #3025.
Matthias Clasen [Thu, 6 Aug 2020 14:43:28 +0000 (14:43 +0000)]
Merge branch 'toplevel-size-declaration' into 'master'
gdk/toplevel: fix declarations of GdkToplevelSize
See merge request GNOME/gtk!2386
Andreas Persson [Thu, 6 Aug 2020 14:14:10 +0000 (16:14 +0200)]
gdk/toplevel: fix declarations of GdkToplevelSize
GDK_AVAILABLE_IN_ALL was missing from gdk_toplevel_size_get_bounds and
gdk_toplevel_size_set_max_size was declared though it doesn't exist.
Emmanuele Bassi [Thu, 6 Aug 2020 12:35:19 +0000 (12:35 +0000)]
Merge branch 'rsvg-check' into 'master'
Specify version for optional librsvg dependency
See merge request GNOME/gtk!2385